{
    identifier: "id",
    label: "servicesProvided",
    items: [
<?php

include_once "src/controller/regmanagement/MiscellaneousManager.php";

try {
    $services = MiscellaneousManager::getServices();
    for ($i = 0 ; $i < count($services) ; $i++) {
        $service = $services[$i];
        if ($i == 0) {
            echo '{ "id" : "' . $service->getServiceId() .'", "service" : "' . $service->getServiceName() .'" }';
        } else {
             echo ', { "id" : "' . $service->getServiceId() .'", "service" : "' . $service->getServiceName() .'" }';
        }


    }
} catch (Exception $e) {
    echo '{"id" : "0", "service" : "ERROR" }';
}
?>

    ]
}
